/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seres;

/**
 *
 * @author INFORMATICA
 */
public class Marciano extends Guerrero {
    public Marciano(String soy){
        super(soy);
        //this.soy =soy;
        total++;
        
    }
    
    public void recibeDisparo(int i){
        if (vivo && blanco == i){
            vivo = false;
            total--;
            System.out.println (soy + "Muerto por disparo nº " +i);
        }
    }
    
    public static int getTotal(){
        return total;
    }
    private static int total = 0;
    //private String soy;
    
}
